-
Notifications
You must be signed in to change notification settings - Fork 395
feat: initial structure for components and b2b flow #20103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
formControlName="poNumber" | ||
type="text" | ||
placeholder="{{ 'checkoutB2B.placeholder' | cxTranslate }}" | ||
value="{{ cartPoNumber$ | async }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it affect perf to has a sync directly in form attribute?
wondering if we should subscribe it once in 'div' or 'container'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it may affect performance. I will try to fix this.
typeSelected?: string; | ||
paymentTypesError = false; | ||
|
||
isUpdating$ = combineLatest([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seeing a number of methods without return type, fee free to add them even though in this it makes sens it is a boolean form method name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code will be evaluating, but I will add all needed typing for the final version.
|
||
this.busy$.next(true); | ||
this.checkoutPaymentTypeFacade | ||
.setPaymentType(this.typeSelected, poNumberInput) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to unsubscribe or we are 100% sure it complete after 1 time?
In the doubt should we add 'take(1)' or sub.add + ngDestroy callback?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I will fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, happy with it.
Closes: CXSPA-9388
Major Changes Introduced
OpfB2bCheckoutPaymentType
component structure for B2B payment type handlingOpfCheckoutPaymentAndReview
component for handling B2B payment reviewOpfCheckoutReviewCard
component for displaying review informationOpfCheckoutReviewCartDetails
component to handle cart information display: cart, entries and promotions